package com.thuanpq60023.easyenglish.view;

import android.app.Activity;
import android.graphics.Typeface;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.thuanpq60023.easyenglish.R;
import com.thuanpq60023.easyenglish.helper.GlobalFont;

public class Header {
	private TextView mTitle;
	private LinearLayout mMenu;
	private Typeface font1;

	public Header(Activity activity) {
		font1 = new GlobalFont(activity.getApplicationContext()).getUVNBanTay();
		mTitle = (TextView) activity.findViewById(R.id.header_title);
		mTitle.setTypeface(font1);
		mMenu = (LinearLayout) activity.findViewById(R.id.header_imv_menu);
	}

	public void setTextTitle(String text) {
		mTitle.setText(text);
	}

	public String getTextTitle() {
		return mTitle.getText().toString();
	}

	public LinearLayout getImvMenu() {
		return mMenu;
	}
}
